package ZuoYe4_forXunHuan_0421;

import java.util.Scanner;

public class ZuoYe5_DaoShu {

	public static void main(String[] args) {
		// 5:求一个正整数 倒转后加上1024的结果.比如 12345倒转后是54321,加上1024，结果是55345.
		Scanner input = new Scanner(System.in);
		System.out.println("请输入一个正整数:");
		int num = input.nextInt();
		int a = 0, b = num;
		for (; num > 0; num /= 10) {

			a = a * 10 + num % 10;
		}
		System.out.println(b + "倒转后是：" + a + ";加上1024，结果是:" + (a + 1024));

	}

}
